'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	let data = JSON.parse(event.body);
  //event为客户端上传的参数
  const collection = db.collection('wage')
  const res = await collection.where(data.query).skip(data.skip).limit(data.limit).get();

  //返回数据给客户端
  return res
};